class PowerUp2 extends Mutator;

var float CheckTime;

function Tick(float delta)
{
    local KFGameType KF;
	local KFHumanPawn AP;
	local Controller C;

    KF = KFGameType(Level.Game);
    if (KF == None) return;
	
	if( CheckTime > Level.TimeSeconds )
		return;
		
	CheckTime = Level.TimeSeconds + 2.0;
	
	for(C=Level.ControllerList; C!=none; C=C.NextController)
	{
		if ( C.Pawn == none )
		{
			continue;
		}
		AP = KFHumanPawn(C.Pawn);

		if ( AP == none )
		{
			continue;
		}
	
		if(KFPlayerReplicationInfo(AP.PlayerReplicationInfo) != none)
		{
			if(KFPlayerReplicationInfo(AP.PlayerReplicationInfo).ClientVeteranSkillLevel > 9
				&& KFPlayerReplicationInfo(AP.PlayerReplicationInfo).ClientVeteranSkill == Class'SRVetSaboteur')
			{
				AP.bBlockActors = false;
			}
			else if ( !KFGameType(Level.Game).bTradingDoorsOpen && !SRHumanPawn(AP).bInvisible )
			{
				AP.bBlockActors = true;
			}
		}
	}
}

defaultproperties
{
	CheckTime=0.0
}
